package com.tsunami.authority.vo.core;

import com.tsunami.authority.entity.core.Dept;
import com.tsunami.model.ITreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * @author lx
 * @date 2021-10-29 17:10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
@Schema(description = "组织结构树")
public class DeptTreeVo extends Dept implements ITreeNode<DeptTreeVo, Long> {
    private List<DeptTreeVo> children;

    private String label;
    private String title;
    private Long keys;
    /**
     * 负责人名称
     */
    private String leaderName;
}
